import Vue from 'vue'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import Avue from '@smallwei/avue'
import '@smallwei/avue/lib/index.css'
import http from '@/http/index.js'
import util from '@/util/index.js'
import App from './App.vue'
import router from './router'
import store from './store'
import axios from 'axios'
import * as echarts from 'echarts'

Vue.use(Avue, { axios, size: `mini` })
Vue.use(ElementUI, { size: `mini` })
Vue.use(echarts)
Vue.prototype.$echarts = echarts

Vue.prototype.$util = util
Vue.config.productionTip = false
Vue.use(http)
window.$this = new Vue({
  router,
  store,
  render: (h) => h(App),
}).$mount(`#app`)
